/**
 * 
 */
package com.zhiteng.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.springframework.web.multipart.MultipartFile;

import com.fasterxml.jackson.annotation.JsonInclude;

/**  
* <p>Title: Item.java</p>  
* <p>Description: 积分物品实体</p>  
* @author dragon  
* @date 2018年12月26日  
* @version 1.0  
*/
@Table(name="tb_item")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Item implements Serializable{
	@Id
	private Long id;			//	积分礼品id/编号
	private String title;		//	积分礼品标题
	private Integer num;			//	积分礼品数量
	private Integer price;		//	兑换积分礼品需要的积分数
	private Integer category;	//	分类：1-实物 2-虚拟
	private Integer flag;		//	积分礼品数为0时是否删除：0-删除  1-不删除
	private String rule;		//	领取方式
	private String description;	//	物品描述
	private String image;		//	积分礼品主图地址
	private Date created;		//	积分礼品上架时间
	
	@Transient
	private MultipartFile imageFile;	//	积分礼品主图
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public Integer getNum() {
		return num;
	}
	public void setNum(Integer num) {
		this.num = num;
	}
	public Integer getPrice() {
		return price;
	}
	public void setPrice(Integer price) {
		this.price = price;
	}
	public Integer getCategory() {
		return category;
	}
	public void setCategory(Integer category) {
		this.category = category;
	}
	public Integer getFlag() {
		return flag;
	}
	public void setFlag(Integer flag) {
		this.flag = flag;
	}
	public String getRule() {
		return rule;
	}
	public void setRule(String rule) {
		this.rule = rule;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getImage() {
		return image;
	}
	public void setImage(String image) {
		this.image = image;
	}
	public Date getCreated() {
		return created;
	}
	public void setCreated(Date created) {
		this.created = created;
	}
	public MultipartFile getImageFile() {
		return imageFile;
	}
	public void setImageFile(MultipartFile imageFile) {
		this.imageFile = imageFile;
	}
	
}
